#include "DbTraits.h"

template <class T>
void FetchField(T& val)
{
	typedef DbTraits<T> Traits;
	typename Traits::DbNativeType temp;
	Traits::Init(temp);
	Traits::Convert(temp,val);
}

int main()
{
	int i;
	FetchField<int>(i);

	double d;
	FetchField<double>(d);

	return 0;
}